import axios from "@/utils/request";
import Vue from "vue";

const Api = {
    getTotalSales: "/admin/sale-volume",
    getQuantitySold: "/admin/sale-quantity",
    getOrderNum: "/admin/orderNum",
  };

  export function getTotalSales() {
    return axios({
      url: Api.getTotalSales,
      method: "get",
    });
  }

  export function getQuantitySold() {
    return axios({
      url: Api.getQuantitySold,
      method: "get",
    });
  }

  export function getOrderNum() {
    return axios({
      url: Api.getOrderNum,
      method: "get",
    });
  }